package me.gacl.websocket.JSR356.example;

/**
 * 业务处理类
 * Created by 孤傲苍狼 on 2016/2/18.
 */
public class BusInessService {

    /**
     * 校验用户名和密码是否正确
     * @param userName
     * @param password
     * @return
     */
    public static boolean validateUser(String userName,String password){
        boolean checkResult=false;
        if ("gacl".equals(userName) && "123".equals(password)){
            checkResult=true;
        }
        return checkResult;
    }
}
